/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package javaapplication6.DomainLayer;

/**
 *
 * @author meydlo
 */
import java.util.ArrayList;
import java.util.HashMap;
public class OrderRentRecords{

    private static OrderRentRecords orderRentRecords;

    private HashMap<Long,ArrayList<OrderRentProduct>> orderRentHashMap;

    //
    private OrderRentRecords(){
        orderRentHashMap=new HashMap<Long, ArrayList<OrderRentProduct>>();
    }

    //
    public static OrderRentRecords getOrderRentRecords(){
        if(orderRentRecords==null)
        {
            orderRentRecords=new OrderRentRecords();
        }
        return orderRentRecords;
    }

    public HashMap<Long, ArrayList<OrderRentProduct>> getOrderRentHashMap() {
        return orderRentHashMap;
    }

    //statistics purpose
    public int noOfRentOrders()
    {
        int no = orderRentHashMap.size();
        return no;
    }
    

}

